package com.oocl.tm.ui;


import java.awt.Font;

import javax.swing.JDialog;
import javax.swing.JLabel;

public class LoginFail{
	
	public LoginFail(){
		try {
			warning();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
	
	public void warning() throws InterruptedException{
		
		JDialog dialog = new JDialog();
		dialog.setSize(250, 90);
		dialog.setTitle("WARNING");
		JLabel tip = new JLabel("Login Fail!!");
		tip.setFont(new Font("Dialog", 1, 18));
		tip.setBounds(30, 0, 120, 50);
		dialog.setLayout(null);
		dialog.add(tip);
		dialog.setLocationRelativeTo(null);
		dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
		dialog.setVisible(true);
	}
	

	
}
